package com.example.musicgui;

import com.example.musicgui.view.Index;
import com.example.musicgui.view.Login;
import com.example.musicgui.view.Page;
import com.example.musicgui.view.Sign;
import javafx.application.Application;
import javafx.stage.Stage;

public class Main extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        Index index = new Index(stage);
        Login login = new Login(stage);
        Sign sign = new Sign(stage);
        Page page = new Page(index,login,sign);
        login.setPage(page);
        sign.setPage(page);
        index.show(1);
    }
}